

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" href="/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="John Doe">
  <meta name="keywords" content="">
  
    <meta name="description" content="前言最近搞了个服务器，来放一些自己的小东西（代码）。想想ftp太麻烦（lower），于是选择了在服务器上搭建一个Git，用来同步代码，特此做一个备忘录（注：我的服务器是centos 7，lnmp环境）。 一、在服务器安装Git1yum install -y git 在安装完之后你可以运行git进行测试，看看是否安装成功（就不贴图了）。 二、在服务器上创建裸版本库ps：远程仓库通常只是一个裸仓库（b">
<meta property="og:type" content="article">
<meta property="og:title" content="线上服务器搭建GIT服务器，实现本地代码上传并同步到服务器">
<meta property="og:url" content="http://example.com/2017/09/23/%E7%BA%BF%E4%B8%8A%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%90%AD%E5%BB%BAGIT%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%8C%E5%AE%9E%E7%8E%B0%E6%9C%AC%E5%9C%B0%E4%BB%A3%E7%A0%81%E4%B8%8A%E4%BC%A0%E5%B9%B6%E5%90%8C%E6%AD%A5%E5%88%B0%E6%9C%8D%E5%8A%A1%E5%99%A8/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="前言最近搞了个服务器，来放一些自己的小东西（代码）。想想ftp太麻烦（lower），于是选择了在服务器上搭建一个Git，用来同步代码，特此做一个备忘录（注：我的服务器是centos 7，lnmp环境）。 一、在服务器安装Git1yum install -y git 在安装完之后你可以运行git进行测试，看看是否安装成功（就不贴图了）。 二、在服务器上创建裸版本库ps：远程仓库通常只是一个裸仓库（b">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://example.com/images/git/ssh-keygen%20-t%20rsa.png">
<meta property="og:image" content="http://example.com/images/git/cat_authorized_keys.png">
<meta property="og:image" content="http://example.com/images/git/git-clone.png">
<meta property="og:image" content="http://example.com/images/git/git-push.png">
<meta property="article:published_time" content="2017-09-22T16:00:00.000Z">
<meta property="article:modified_time" content="2020-05-25T18:39:22.000Z">
<meta property="article:author" content="John Doe">
<meta property="article:tag" content="Linux">
<meta property="article:tag" content="git">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="http://example.com/images/git/ssh-keygen%20-t%20rsa.png">
  
  
  <title>线上服务器搭建GIT服务器，实现本地代码上传并同步到服务器 - Hexo</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/hint.css@2/hint.min.css" />

  
    
    
      
      <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@10/styles/github-gist.min.css" />
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"example.com","root":"/","version":"1.8.13","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 6.0.0"></head>


<body>
  <header style="height: 70vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>LZDF</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/default.png') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="线上服务器搭建GIT服务器，实现本地代码上传并同步到服务器">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2017-09-23 00:00" pubdate>
        2017年9月23日 凌晨
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      2.1k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      18 分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">线上服务器搭建GIT服务器，实现本地代码上传并同步到服务器</h1>
            
            <div class="markdown-body">
              <h1 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h1><p>最近搞了个服务器，来放一些自己的小东西（代码）。想想ftp太麻烦（lower），于是选择了在服务器上搭建一个Git，用来同步代码，特此做一个备忘录（注：我的服务器是centos 7，lnmp环境）。</p>
<h1 id="一、在服务器安装Git"><a href="#一、在服务器安装Git" class="headerlink" title="一、在服务器安装Git"></a>一、在服务器安装Git</h1><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">yum install -y git<br></code></pre></td></tr></table></figure>
<p>在安装完之后你可以运行git进行测试，看看是否安装成功（就不贴图了）。</p>
<h1 id="二、在服务器上创建裸版本库"><a href="#二、在服务器上创建裸版本库" class="headerlink" title="二、在服务器上创建裸版本库"></a>二、在服务器上创建<code>裸版本库</code></h1><p>ps：远程仓库通常只是一个裸仓库（bare repository）， 即一个没有当前工作目录的仓库。因为该仓库只是一个合作媒介，所以不需要从硬盘上取出最新版本的快照；仓库里存放的仅仅是 Git 的数据。简单地说，裸仓库就是你工作目录中 .git 子目录内的内容。</p>
<p>在 /opt/git/aurora 下创建一个叫 aurora.git的裸仓库:</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">mkdir /opt/git/aurora<br><span class="hljs-built_in">cd</span> /opt/git/aurora<br>git init --bare aurora.git      //这里 git init 是初始化空仓库的意思，而参数 --bare 是代表创建裸仓库，这个参数一定记得带上<br></code></pre></td></tr></table></figure>
<h1 id="三、服务器上的裸仓库克隆"><a href="#三、服务器上的裸仓库克隆" class="headerlink" title="三、服务器上的裸仓库克隆"></a>三、服务器上的裸仓库克隆</h1><p>先确保本地是否安装git</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> /home/www<br>git <span class="hljs-built_in">clone</span> git-server:/opt/git/aurora/aurora.git aurora       //其中的git-server即你服务器的公网IP地址<br></code></pre></td></tr></table></figure>
<p><em>在这里如果没有配置公钥的话，会提示输入密码，这样每次就比较麻烦了，所以这里补充一下配置公钥：</em></p>
<h1 id="配置公钥"><a href="#配置公钥" class="headerlink" title="配置公钥"></a>配置公钥</h1><h2 id="1-服务器创建一个用户"><a href="#1-服务器创建一个用户" class="headerlink" title="1.服务器创建一个用户"></a>1.服务器创建一个用户</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">adduser git         //管理员帐户不需要加sudo<br></code></pre></td></tr></table></figure>
<h2 id="2-在服务器-git-用户文件夹配置信息"><a href="#2-在服务器-git-用户文件夹配置信息" class="headerlink" title="2.在服务器 git 用户文件夹配置信息"></a>2.在服务器 git 用户文件夹配置信息</h2><p>在<code>git</code>用户文件夹中，创建.ssh文件夹，在.ssh中touch authorized_keys文件</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">mkdir .ssh<br>touch .ssh/authorized_keys<br></code></pre></td></tr></table></figure>
<h2 id="3-用户生成key"><a href="#3-用户生成key" class="headerlink" title="3.用户生成key"></a>3.用户生成key</h2><p>在客户端生成两个文件，执行如下命令，根据提示输入默认文件名，执行下去就好</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ssh-keygen -t rsa<br></code></pre></td></tr></table></figure>
<p>如图：<br><img src="/images/git/ssh-keygen -t rsa.png" srcset="/img/loading.gif" lazyload ><br>这我是直接将秘钥文件生成在了当前用户目录下的<code>.ssh</code>目录下，也可以在外面生成之后在复制进来。<br>注意到里面多了一个config文件，这是用来配置远程服务器信息的。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">host git-server <br>    user git<br>    hostname 114.67.141.xxx<br>    port 22 <br>    identityfile ~/.ssh/aurora<br></code></pre></td></tr></table></figure>
<ul>
<li>注意除第一行，其余要缩进一个tab</li>
<li>这里的git替换为自己之前创建key时输入的用户名</li>
<li>hostname 后面替换为你的服务器IP地址</li>
</ul>

<h2 id="4-将公钥追加到服务器git用户下的authorized-keys文件中"><a href="#4-将公钥追加到服务器git用户下的authorized-keys文件中" class="headerlink" title="4.将公钥追加到服务器git用户下的authorized_keys文件中"></a>4.将公钥追加到服务器<code>git</code>用户下的authorized_keys文件中</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> /home/git/.ssh<br>vim authorized_keys<br></code></pre></td></tr></table></figure>
<p>将公钥的内容追加到此文件中<br><img src="/images/git/cat_authorized_keys.png" srcset="/img/loading.gif" lazyload ></p>
<h2 id="5-重新Clone远程的代码仓库到本地"><a href="#5-重新Clone远程的代码仓库到本地" class="headerlink" title="5.重新Clone远程的代码仓库到本地"></a>5.重新Clone远程的代码仓库到本地</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> /home/www<br>git <span class="hljs-built_in">clone</span> git-server:/opt/git/aurora/aurora.git aurora<br></code></pre></td></tr></table></figure>
<img src="/images/git/git-clone.png" srcset="/img/loading.gif" lazyload >
<ul>
<li>git-server：表示我们在config文件配置的服务器IP地址，直接写“git-server”即可，当然，你也可以修改config文件里的名字</li>
<li>/opt/git/aurora/aurora.git：这个是远程服务器的仓库地址，按照实际情况自行修改</li>
</ul>

<p>这样，会在客户端<code>/home/www</code>下创建一个名为aurora的文件夹（.git会被省略）。<br>我们可以做一个测试，在/home/www/aurora文件夹中添加一个文件，并提交。</p>
<p>推送到远程：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">git push git-server:/opt/git/aurora/aurora.git master<br></code></pre></td></tr></table></figure>
<img src="/images/git/git-push.png" srcset="/img/loading.gif" lazyload >

<h1 id="实现自动同步到站点目录（www-aurora）"><a href="#实现自动同步到站点目录（www-aurora）" class="headerlink" title="实现自动同步到站点目录（www/aurora）"></a>实现自动同步到站点目录（www/aurora）</h1><p>刚才我们往远程仓库推送了readme.txt件，虽然提示推送成功，但是我们现在在服务器端还看不到效果，如果服务器能够每次在我们上传代码后就将代码直接同步到服务器代码目录就好了。</p>
<p>自动同步功能用到的是 git 的钩子功能：</p>
<p>服务器端：进入裸仓库：/opt/git/aurora/aurora.git</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> /opt/git/aurora/aurora.git<br></code></pre></td></tr></table></figure>
<p>创建post-receive文件</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> hooks<br>vim post-receive<br></code></pre></td></tr></table></figure>
<p>在里面添加如下内容</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-meta">#!/bin/bash</span><br>git --work-tree=/home/www/aurora checkout -f<br></code></pre></td></tr></table></figure>
<p>保存成功，退出，将该文件用户及用户组都设置成git。由于该文件其实就是一个shell文件，我们还应该为其设置可执行权限（同时将/home/www/aurora目录用户及用户组也设置为git，不然客户端会提示没有上传权限）</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">chown git:git post-receive<br>chmod +x post-receive<br></code></pre></td></tr></table></figure>
<p>可以看到，之前提交的文件已经可以看到了</p>
<h1 id="说明"><a href="#说明" class="headerlink" title="说明"></a>说明</h1><p>1.客户端中ssh登录，会默认读取用户目录下.ssh文件夹的config文件ssh配置信息。<br>2.不论客户端还是服务器端，生成的公钥.pub应拷贝到服务器上，私key自己使用。私钥一旦泄漏，任何人都可以通过该私钥提交代码。</p>
<h1 id="备注："><a href="#备注：" class="headerlink" title="备注："></a>备注：</h1><p>本文参考链接：<br><a target="_blank" rel="noopener" href="http://www.jianshu.com/p/10b6a1ee7f64">干货 | 简单几步搭建一个远程git服务器</a><br><a target="_blank" rel="noopener" href="http://blog.csdn.net/baidu_30000217/article/details/51327289"> 搭建服务器上的GIT并实现自动同步到站点目录（www）</a></p>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                  <div class="post-meta mr-3">
                    <i class="iconfont icon-category"></i>
                    
                      <a class="hover-with-bg" href="/categories/git/">git</a>
                    
                  </div>
                
                
                  <div class="post-meta">
                    <i class="iconfont icon-tags"></i>
                    
                      <a class="hover-with-bg" href="/tags/Linux/">Linux</a>
                    
                      <a class="hover-with-bg" href="/tags/git/">git</a>
                    
                  </div>
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2017/11/13/php/session%E5%8E%9F%E7%90%86%EF%BC%8C%E5%A6%82%E4%BD%95%E4%BF%AE%E6%94%B9session%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">【转】session原理，如何修改session生命周期</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2017/05/22/php/%E9%A9%BC%E5%B3%B0%E5%91%BD%E5%90%8D%E6%B3%95%E5%92%8C%E4%B8%8B%E5%88%92%E7%BA%BF%E9%A3%8E%E6%A0%BC%E7%9A%84%E4%BA%92%E8%BD%AC/">
                        <span class="hidden-mobile">【转】驼峰命名法和下划线风格的互转</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  

  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  






  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
        typing(title);
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
